<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <title>Бомбила. Списко заказов</title>
  <script type="text/javascript" src="/static/js/prototype-1.6.0.2.js"></script>
  <script type="text/javascript">
      function takeOrder(id) {
          $("orderId").value = id;
      }
  </script>
</head>
<body>
   <a href="/profile">Профиль</a>
   <table>
    <tr>
        <th>Содержание</th>
        <th>Автор</th>
        <th>&nbsp;</th>
    </tr>
{% for order in orders %}
    <tr>
        <td>{{order.content|escape}}</td>
        <td>{{order.author_p.name|escape}}</td>
        <td><a href="javascript:takeOrder('{{order.key.id}}')">Взять</a></td>
    </tr>
{% endfor %}
</table>
 <form action="/takeOrder" method="post" accept-charset="utf-8">
     <input type="hidden" name="orderId" id="orderId" />
     <textarea rows="5" cols="25" name="comment"></textarea><br />
     <input type="submit" value="send" />
 </form>
</body>
</html>